package com.baizhi.springboot.dao;

import com.baizhi.springboot.entity.Article;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ArticleDao {
    Integer selectCount();

    List<Article> selectArticleByPage(@Param("offset")Integer offset, @Param("limit")Integer limit);

    void insertArticle(Article article);

    void deleteArticle(Integer id);

    Article selectOneArticle(Integer id);

    void updateArticle(Article article);
}
